package com.youzu.information.common.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Getter
@Setter
@ToString(callSuper=true, includeFieldNames=true)
public class PageDO<T> {

	private int offset;
	private int limit;
	private int total;
	private Map<String, Object> params;
	private String param;
	private List<T> rows;

	public PageDO() {
		super();
		this.offset = 0;
		this.limit = 10;
		this.total = 1;
		this.params = new HashMap<>();
		this.param = "";
		this.rows = new ArrayList<>();
	}

//	@Override
//	public String toString() {
//		return "PageDO{" +
//				"offset=" + offset +
//				", limit=" + limit +
//				", total=" + total +
//				", params=" + params +
//				", param='" + param + '\'' +
//				", rows=" + rows +
//				'}';
//	}
}
